﻿@model Everynet.Models.AgreementModel
@{
    ViewBag.Title = "Agreement";
    Layout = "~/Views/Shared/_SignUpLayout.cshtml";
}
<div id='screen'></div>
  <div class="body-page">
   <div id='loaderCenter' class="displaynone">
                        <img src="@Url.Content("~/Content/images/ajax_loader_gray.gif")" alt="Please wait..." class="ajax-loader"/>
                         <p class="loadertext">Please wait...</p>
                    </div>  
<h1 class="top-head">Agreement</h1>
 <h2 class="signup-form-heading">
        Signup step 5 of 6
    </h2><br />
 @using (Html.BeginForm("OrderComplete", "signUp", FormMethod.Post, new { id = "mySignupAggrForm" }))
{
     @Html.AntiForgeryToken()
    @Html.HiddenFor(m => m.ID)
    @Html.ValidationSummary()
    
<span class="fnt10left">
Before we can process your order, you will need to accept the following terms. 
@Html.Raw(Model.Agreement)
</span>
    
    if (Model.listDynamicAgreement != null)
    {
     @* Dynamic Loop Start*@
    <table style="width:100%;">
    @foreach (var item in Model.listDynamicAgreement)
    {
        <tr>
        <td>
        <h3> @item.SubExtrasname :</h3>
        </td>
        </tr>
       <tr>
       <td>
         @Html.Raw(item.Agreement)
       </td>
       </tr>
    }

     @foreach (var item in Model.listDynamicAgreementHardware)
    {
        <tr>
        <td>
        <h3> @item.SubHardwareName :</h3>
        </td>
        </tr>
       <tr>
       <td>
         @Html.Raw(item.Agreement)
       </td>
       </tr>
    }
    </table>
    }
    <br /> 
@Html.CheckBoxFor(m => m.Agreementcheck, new { @checked = "checked" }) <text>&nbsp;</text>  @Html.LabelFor(m => m.Agreementcheck)<br />
 @Html.ValidationMessageFor(m => m.Agreementcheck)
 <br />
 <div>
        <div class="floatleft">
            <a href="@Url.Action("OrderSummary", "signUp", new { id = @Model.ID })">
                <input id="btnback" type="button" value="Back" class="btncolor btnbottom"/></a></div>
        <div class="padlef500new">
         <a href="@Url.Action("OrderComplete", "signUp", new { id = @Model.ID })">
           <input id="btnnext" type="submit" value="Next" id="btnNextSubmit" class="btncolor btnbottom"/></a>
           </div>
            @Html.Hidden("hdnReplace", @Url.Action("ReplaceText", "signUp", new { id = @Model.ID }))
    </div>
}
</div>
@section JavaScriptSignUp
{
<script src="@Url.Content("~/Scripts/client/Agreement.js")" type="text/javascript"></script>
}